Skip to main content

All Questions

0votes
1answer
2kviews

Java: Is there a performance difference between variable assignment vs. inline usage?

Is there any performance detriment to assigning variables vs using them inline. I'm guessing this WOULD be worse if a method was returning primitive and I was 'boxing' it (e.g. method returning int, ...
nanotek's user avatar
12votes
5answers
4kviews

Should you minimize the creation of a lot of small objects?

When writing something that creates many (1000s) of small objects often, should you try to minimize it for performance? Especially if you don't know what system it will be run on, from low to high end ...
Stripies's user avatar

close